/*
 * Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
 *
 * https://www.mall4j.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */
package com.yami.shop.im.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yami.shop.im.bean.ImMsgBizUserHistory;
import com.yami.shop.im.util.PageParam;
import org.apache.ibatis.annotations.Param;

/**
 * @author LZK
 * @date 2021-04-01 17:22:48
 */
public interface ImMsgBizUserHistoryMapper extends BaseMapper<ImMsgBizUserHistory> {

    /**
     * 获取平台聊天记录
     * @param pageParam
     * @param sendType
     * @param bizId
     * @param userId
     * @return
     */
    Page<ImMsgBizUserHistory> pageByPlatformParams(PageParam<ImMsgBizUserHistory> pageParam, @Param("sendType") Integer sendType,
                                                   @Param("bizId") Long bizId, @Param("userId") String userId);
}
